package com.heima.controller;


import com.heima.pojo.TbBusiness;
import com.heima.service.ITbBusinessService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商圈表 前端控制器
 * </p>
 *
 * @author nan
 * @since 2024-06-09
 */
@RestController
@RequestMapping("/api/vm-service/businessType")
public class TbBusinessController {

    @Autowired
    private ITbBusinessService businessService;

    @GetMapping
    @ApiOperation("查询商圈列表")
    public List<TbBusiness> getAllBusiness() {
        return businessService.list();
    }
}
